package returnDataStruct;

import pojo.room;

import java.util.ArrayList;
import java.util.List;

public class orderListData {
    List<orderData> orderList;

    public orderListData(List<room> rl){
        orderList = new ArrayList<>();
        for(room r:rl){
            orderList.add(new orderData(r));
        }
    }

    public List<orderData> getOrderList() {
        return orderList;
    }

    public void setOrderList(List<orderData> orderList) {
        this.orderList = orderList;
    }

    @Override
    public String toString() {
        return "orderListData{" +
                "orderList=" + orderList +
                '}';
    }
}
